package com.manong.controller;


import com.manong.service.UserService;
import com.manong.utils.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ray
 * @since 2022-06-24
 */
@Controller
@RestController
@RequestMapping("/api/user")
public class UserController {
  
  @Resource
  private UserService userService;
  
  @GetMapping("/listAll")
  public Result listAll() {
    return Result.ok(userService.list());
  }

}

